#ifndef _WIRELESS_CMD_API_H
#define _WIRELESS_CMD_API_H

#define UDE_HID_NEXTFILE        0x0100
#define UDE_HID_PREVFILE        0x0200
#define UDE_HID_PLAYPAUSE       0x0400
#define UDE_HID_MUTE            0x0800

#define UDE_HID_STOP            0x0010
#define UDE_HID_PROMOTE         0x0020
#define UDE_HID_DEMOTE          0x0040
#define UDE_HID_CART            0x0080

#define UDE_HID_VOLUP           0x0001
#define UDE_HID_VOLDOWN         0x0002
#define UDE_HID_CENTER          0x0004
#define UDE_HID_NONE            0x0008

#define UDE_HID_WHEEL_UP        0x0001
#define UDE_HID_WHEEL_DN        0x00FF

//无线麦控制
typedef enum{
    ECHO_AUDIO_MUTE       = 0,
    ADPCM_CODER_MUTE,

    ADPCM_DECODER_MUTE,
    PLC_ADPCM_AUDIO_MUTE,
    SNDP_AUDIO_MUTE,
    AINS3_AUDIO_MUTE,
    SRC_AUDIO_MUTE,
    DAC_OUT_AUDIO_MUTE,
    USB_MIC_IN_AUDIO_MUTE,
    MAGIC_AUDIO_MUTE,
    HOWLING_AUDIO_MUTE,
    MIC_MUTE,
    SOFT_POWER_ON_OFF_MUTE,
    DNN_AUDIO_MUTE,
    DNN_AUDIO_LEVEL,
    DISCONNECT_NUM,
    VOL_OUT,
} sub_mute_cmd_t;


//USB播放控制
typedef enum{
    USB_SET_SPK_VOLUME      = 0,
    USB_CTL_MIC_STA,
    USB_CTL_PLAY_PAUSE,
    USB_CTL_VOLUME_UP,
    USB_CTL_VOLUME_DOWN,
    USB_CTL_PREVFILE,
    USB_CTL_NEXTFILE,
} sub_usb_cmd_t;


//device <==> adapter私有命令api
void wireless_cmd_init(void);
void wireless_rx_cmd(u8 index, u8 *ptr, u8 len);
void wireless_tx_usb_cmd(u8 msg, u8 param);
void wireless_tx_user_cmd(u8 *ptr, u8 len);
void wireless_tx_user_link_cmd(u8 msg, u8 len);
void wireless_tx_user_vol_cmd(u8 msg, u8 vol);

//device <==> adpater USER api
#define wireless_tx_user_discon_cmd()           wireless_tx_user_link_cmd(DISCONNECT_NUM,1);       //断开麦连接


//device <==> adpater USB播放控制api
#if !ADAPTER_USB_SPK_TX_EN
    #define wireless_music_play_pause()
    #define wireless_music_volup()
    #define wireless_music_voldown()
    #define wireless_music_prev()
    #define wireless_music_next()
    #define wireless_set_usbspk_vol(vol)
#else
    #define wireless_music_play_pause()             wireless_tx_usb_cmd(USB_CTL_PLAY_PAUSE, 0)      //切换播放/暂停
    #define wireless_music_volup()                  wireless_tx_usb_cmd(USB_CTL_VOLUME_UP, 0)       //音量加
    #define wireless_music_voldown()                wireless_tx_usb_cmd(USB_CTL_VOLUME_DOWN, 0)     //音量减
    #define wireless_music_prev()                   wireless_tx_usb_cmd(USB_CTL_PREVFILE, 0)        //上一曲
    #define wireless_music_next()                   wireless_tx_usb_cmd(USB_CTL_NEXTFILE, 0)        //下一曲
    #define wireless_set_usbspk_vol(vol)            wireless_tx_usb_cmd(USB_SET_SPK_VOLUME, vol)    //spk_vol
#endif

#if !ADAPTER_USB_MIC_RX_EN
    #define wireless_set_usbmic_status(start)
#else
    #define wireless_set_usbmic_status(start)       wireless_tx_usb_cmd(USB_SET_SPK_VOLUME, start)  //mic_status
#endif


#endif
